package com.ers.modelconvert;

import com.ers.model.User;
import com.ers.validmodel.UserRegisterModel;

public class UserRegisterConvert {
	public static User toUser(UserRegisterModel urm){
		User u = new User();
		u.setId(urm.getId());
		u.setName(urm.getName());
		u.setPassword(urm.getPassword());
		u.setMailbox(urm.getMailbox());
		u.setPhone(urm.getPhone());
		u.setLoginName(urm.getLoginName());
		return u;
	}
}
